<#include "../layout/main.html">
<@layout>
<!-- 主体部分开始 -->
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <!-- 内容区 -->
            <!-- 功能操作区一 -->
            <div class="layui-form toolbar">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <form class="layui-form">
                            <div class="layui-input-inline">
                                <input type="text" name="keywords" placeholder="工号/姓名/手机号" autocomplete="off" class="layui-input">
                            </div>
                            <button class="layui-btn" lay-submit="" lay-filter="searchForm"><i class="layui-icon">&#xe615;</i>查询</button>
                        </form>
                    </div>
                    <div class="layui-inline">
                        <div class="layui-input-inline" style="width: auto;">
                            <a href="javascript:" class="layui-btn  layui-btn-small btnAdd" data-param='[]' lay-event="add">
                                <i class="layui-icon">&#xe654;</i> 添加人员	</a>
                            <a href="javascript:" class="layui-btn layui-btn-danger layui-btn-small btnBatchDrop" data-param='[]' lay-event="batchDrop">
                            <i class="layui-icon">&#xe640;</i> 批量删除	</a>
                        </div>
                    </div>
                </div>
            </div>

            <!-- TABLE渲染区 -->
            <table class="layui-hide" id="tableList" lay-filter="tableList"></table>

            <!-- 操作功能区二 -->
            <script type="text/html" id="toolBar">
                <a class="layui-btn layui-btn-primary layui-btn-xs btnSetAuth" lay-event="auth"><i class="layui-icon">&#xe631;</i>独立权限</a>		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="role"><i class="layui-icon">&#xe631;</i>角色设置</a>		<a class="layui-btn layui-btn-xs btnEdit" lay-event="edit"><i class="layui-icon">&#xe642;</i>编辑</a>		<a class="layui-btn layui-btn-danger layui-btn-xs btnDel" lay-event="del"><i class="layui-icon">&#xe640;</i>删除</a>		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="reset"><i class="layui-icon">&#xe640;</i>初始化密码</a>
            </script>

            <!-- 状态 -->
            <script type="text/html" id="statusTpl">
                <input type="checkbox" name="status" value="{literal}{{ d.status }}{/literal}" lay-skin="switch" lay-text="在用|停用" lay-filter="status" {literal}{{ d.status == 1 ? 'checked' : '' }}{/literal} >
            </script>

            <!-- 是否管理员 -->
            <script type="text/html" id="adminTpl">
                {literal}
                {{#  if(d.is_admin === '1'){ }}
                <span style="color: #F581B1;">是</span>
                {{#  } else { }}
                否
                {{#  } }}
                {/literal}
            </script>

        </div>
    </div>
</div>
<!-- 主体部分结束 -->
</@layout>
